import request from '@/utils/request'

export default {
  // 创建订单
  createOrder(courseId){
    return request({
      url: `/orderservice/t-order/createOrder/${courseId}`,
      method: 'post'
    })
  },

  //根据订单编号查询订单
  getOrderByNo(orderNo){
    return request({
      url:`/orderservice/t-order/getOrderInfo/${orderNo}`,
      method: 'get'
    })
  },

  //生成二维码
  createNative(orderNo){
    return request({
      url: `/orderservice/paylog/createNative/${orderNo}`,
      method: 'get'
    })
  }
}
